package com.tencent.cloud.iov.util;

/**
 * @author showxiao
 * @date 2018/10/8
 */
public class NumberUtils {

    public static int defaultIfNull(Integer value) {
        return value != null ? value : 0;
    }

    public static double defaultIfNull(Double value) {
        return value != null ? value : 0.0d;
    }

}
